package com.haiertvbic.tvnow.util;


import android.app.AlertDialog;
import android.content.Context;
import android.content.DialogInterface;
import android.os.Process;

public class IsExit {
	
	public static void isExit(Context c){
//		AlertDialog dialog = new AlertDialog.Builder(c).create();
//		dialog.setTitle("您要退出应用吗？");
//		dialog.setButton(DialogInterface.BUTTON_POSITIVE,"是", new DialogInterface.OnClickListener() {
//			
//			public void onClick(DialogInterface dialog, int which) {
//				for(int i=0;i<AppManager.activityList.size();i++){
//					AppManager.getActivity(i).finish();
//				}
//			}
//		});
//		dialog.setButton(DialogInterface.BUTTON_NEGATIVE,"否", new DialogInterface.OnClickListener(){
//
//			public void onClick(DialogInterface dialog, int which) {
//				dialog.cancel();
//			}
//			
//		});
//		dialog.show();
		for(int i=0;i<AppManager.activityList.size();i++){
			AppManager.getActivity(i).finish();
		}
	}

}
